package com.wx.commons.api;

import com.wx.commons.entity.RoleOperationInfo;
import com.wx.commons.model.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient("user")
public interface UserApi {

    @PostMapping("/roleOperation/info")
    List<RoleOperationInfo> getRoleOperationInfo();

    @GetMapping("/userInfo")
    List<UserInfo> selectUserInfo();
}
